package com.nowcoder.community.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

/**
 * @author 夏智力
 * @FileName AlphaConfig
 * @date 2021/5/28 14:55
 * @Software: IntelliJ IDEA
 */
@Configuration
//@Configuration注解说明这是个配置类
public class AlphaConfig {

    @Bean
    public SimpleDateFormat simpleDateFormat() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }
}
